<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		#div1{
			padding-top:30px;
		
		}
		
		body{
			background-image:url(img/bb.jpg);
			background-repeat:repeat-x;
		}
	</style>
</head>

<body class="body">
	<%@ include file="include/main-top.jsp"%>
	<div class="container">
		<div class="row">
		<div class="row">
		<jsp:include page="include/left.jsp">
			<jsp:param value="file" name="tag"/>
		</jsp:include>
		<div class="span9">
			<a href="fileupload.jspx?projectid=<%=session.getAttribute("projectid")%>&filetypeid=<%=session.getAttribute("filetypeid")%>&name=<%=session.getAttribute("name")%>" class="btn btn-primary" style="float:right"><i class="icon-white  icon-share"></i>上传资料</a>
			<div id="div1">
				<div class="clear"></div>
				
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<i class="icon-th"></i><a href="file.jspx?projectid=<%=session.getAttribute("projectid")%>&employeeid=<%=session.getAttribute("employeeid")%>&files=${f.getId()}">文件共享</a>/<a href="#">客户资料</a>
					</li>
					<li style="float:right"><a href="file.jspx?projectid=<%=session.getAttribute("projectid")%>&employeeid=<%=session.getAttribute("employeeid")%>&filetypeid=<%=session.getAttribute("filetypeid")%>" class="link-black" title="删除该文件夹"><i class="icon-trash"></i></a></li>
				</ul>
	
				<div class="wall">
					<table class="table table-striped">
						<thead>
							<tr>
								<th width="30px"></th>
								<th width="55%">名称</th>
								<th width="15%">大小</th>
								<th>创建人</th>
	
								<th></th>
							</tr>
						</thead>
						
						<c:forEach  items="${filelist}" var="f">
							<tbody>
								<tr>
									<td>
										<img src="img/files.png"/>
									</td>
									<td><a href="Download.jspx?id=${f.id}">${f.name}</a></td>
		
									<td>${f.filesize}kb</td>
									<td>${f.employee.username}</td>
									<td><a href="edfile.jspx?id=${f.id}&projectid=<%=session.getAttribute("projectid")%>&employeeid=<%=session.getAttribute("employeeid")%>&filesid=${f.id}"><i class="icon-trash"></i></a></td>
								</tr>
								
							</tbody>
							
						</c:forEach>
					</table>
					
					<a href="file.jspx?projectid=<%=session.getAttribute("projectid")%>&employeeid=<%=session.getAttribute("employeeid")%>&files=${f.id}">←返回</a>
				</div>
			</div>
			
		</div>
	  </div>
	</div>
  </div>
  </body>
</html>
